const mongoose = require('mongoose')

const schema = new mongoose.Schema({
    username: {
        type: String
    },
    password: {
        type: String
    },
    identity: {
        type: Number
    }, //身份 0学生 1教师 2管理员
    bindId: {
        type: mongoose.SchemaTypes.ObjectId
    }//和信息绑定的id
})

module.exports = mongoose.model('User', schema)